package cn.ithers.blog.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: zhanghuan
 * @date: 2020/11/6 14:33
 * @description:
 */
@Data
public class CategoryDTO implements Serializable {

    @NotNull
    @ApiModelProperty(value = "分类名称",required = true)
    private String name;

    @NotNull
    @ApiModelProperty(value = "拼音",required = true)
    private String pinyin;

    @NotNull
    @ApiModelProperty(value = "描述",required = true)
    private String description;

    @NotNull
    @ApiModelProperty(value = "顺序",required = true)
    private long order = 1;

    @ApiModelProperty(value = "状态：0表示不使用，1表示正常")
    private String status;

}
